﻿using DocumentFormat.OpenXml.Lite.Shared;
using DocumentFormat.OpenXml.Lite.Xml;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace DocumentFormat.OpenXml.Lite.DrawingML.Chart.Properties
{
    [XmlRoot("externalData", Namespace = Constants.Chart)]
    public class ExternalData : XmlSerializable
    {
        [XmlAttribute("id", Namespace = Constants.Relationship, Form = XmlSchemaForm.Qualified)]
        public string RelationshipId { get; set; }

        [Optional]
        [XmlElement("autoUpdate", Namespace = Constants.Chart)]
        public NullableValue<bool> AutoUpdate { get; set; }

        public ExternalData() { }
    }
}
